/**
 * 
 */
package br.fot.granola.genner;

import android.os.Bundle;
import br.fot.granola.genner.states.blinky.Blinky;
import br.fot.granola.oboe.controllers.StateMachine;
import br.fot.granola.oboe.core.Oboe;
import br.fot.granola.oboe.core.Slot;

/**
 * @author Felipe
 *
 */
public class ScreenFlow extends StateMachine
{
	public ScreenFlow() 
	{
		super();
	}
	
	@Slot public void onUpdate()
	{
		this.applyState();
		Oboe.signalDown( this, "onUpdate" );
	}
	
	@Slot public void onKeyDown( int code )
	{
		Oboe.signalDown( this, "onKeyDown", code );
	}
	
	@Slot public void onKeyUp( int code )
	{
		Oboe.signalDown( this, "onKeyUp", code );
	}

	@Slot public void onCreate( Bundle b )
	{
		this.addState( Blinky.class, new Blinky() );
		this.setState( Blinky.class );
	}
}
